package com.glory.cqaospda.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.glory.cqaospda.R;
import com.glory.cqaospda.bean.LotInfoBean;
import com.glory.cqaospda.bean.MesRejectBean;

import java.util.List;

import androidx.annotation.Nullable;

public class RejectDataAdapter extends BaseQuickAdapter<MesRejectBean.RejectInfoList, BaseViewHolder> {

    public RejectDataAdapter(@Nullable List<MesRejectBean.RejectInfoList> data) {
        super(R.layout.adapter_rejectdata, data);
    }

    @Override
    protected void convert(BaseViewHolder helper,MesRejectBean.RejectInfoList item) {
        helper.setText(R.id.tvName, item.getName());
        helper.setText(R.id.tvNameDesc, item.getNamedesc());
        helper.setText(R.id.tvCount, item.getCount());
        helper.setText(R.id.tvPercent, item.getPercent());
    }

}
